package com.dcm360.report.alarm.domain;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.net.URL;
import java.util.Date;

/**
 * 告警信息对象 alarm
 * 
 * @author ligh
 * @date 2022-03-30
 */
@Getter
@Setter
@EqualsAndHashCode
public class Alarm
{
    private static final long serialVersionUID = 1L;

    @ExcelProperty("告警ID")
    private String id;

    @ExcelProperty("告警编号")
    private String alarmNo;

    @ExcelIgnore
    private String robotId;

    @ExcelIgnore
    private String equipmentId;

    @ExcelIgnore
    private String cabinId;

    private String inspectionpointId;

    @ExcelProperty(value = "告警等级" , index = 0)
    private String alarmLevel;

    @ExcelProperty(value = "告警类型" , index = 1)
    private String alarmType;

    @ExcelProperty(value = "告警时间" , index = 2)
    private String alarmTime;


    private String picPath;

    /** 故障原因 */
    private String faultReason;

    /** 处理状态 */
    private String handleState;

    /** 处理内容 */
    private String handleContent;

    /** 用户id */
    private String userId;

    /** 处理人名称 */
    private String handleUser;
    /** 搜索值 */
    private String searchValue;

    /** 创建者 */
    private String createBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 更新者 */
    private String updateBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /** 备注 */
    private String remark;


    private URL url;

}
